#JustComputerScientistThings

Kinja'd!!! "The Transporter" (transporter)
08/27/2014 at 21:53 • Filed to: None

Kinja'd!!!6 Kinja'd!!! 14

That moment when you realized that you just whipped up a bit of recursive code in about a minute on a total lark without having to run through every possible permutation of the recursion in your head and not only does the code compile, but it works for every instance!

Kinja'd!!!

DISCUSSION (14)


Kinja'd!!! Rico > The Transporter
08/27/2014 at 21:57

Kinja'd!!!7

Kinja'd!!!


Kinja'd!!! Grindintosecond > The Transporter
08/27/2014 at 22:02

Kinja'd!!!1


Kinja'd!!! zeontestpilot > The Transporter
08/27/2014 at 22:33

Kinja'd!!!0

Aka, a miracle....that was an accident.


Kinja'd!!! desertdog5051 > The Transporter
08/27/2014 at 22:44

Kinja'd!!!0

You took the words right out of my mouth.


Kinja'd!!! The Transporter > zeontestpilot
08/27/2014 at 23:07

Kinja'd!!!1

I'd love to see someone try to accidentally get a recursive algorithm to work flawlessly. I'm not saying it's impossible, I'm just saying.

This wasn't about me accidentally stumbling on to a solution to a problem so much as it was about me being able to quickly work out a solution in a few minutes where it would have taken me hours of checking and rechecking to get to the same conclusion a year ago.


Kinja'd!!! zeontestpilot > The Transporter
08/28/2014 at 06:20

Kinja'd!!!0

It's like...you're learning!!! Lol, still, it's awesome that you got the code working quickly!

What language did you write it in? I tend to stick with Java because of my job.


Kinja'd!!! Lekker > The Transporter
08/29/2014 at 12:26

Kinja'd!!!0

That last bit is the kicker, making sure it works for every instance. What language?


Kinja'd!!! The Transporter > Lekker
08/29/2014 at 12:33

Kinja'd!!!0

Java. And it turned out that I had to write a special if else statement to handle an input of 0. Other than that it worked fine.


Kinja'd!!! Lekker > The Transporter
08/29/2014 at 12:34

Kinja'd!!!0

Special case scenarios are always fun. Even more so with Java. The worst is though checking for invalid inputs. But seems like the end user of the program is you or someone savvy, so that has to be a relief.

Don't forget kids, ALWAYS COMMENT YOUR CODE


Kinja'd!!! The Transporter > Lekker
08/29/2014 at 13:52

Kinja'd!!!0

Invalid inputs are how I accidentally taught myself recursion.

And I never comment my code. I like to live dangerously.


Kinja'd!!! Mattbob > The Transporter
09/02/2014 at 15:00

Kinja'd!!!0

this is why I'm an EE not a CS. I try to avoid programming anything more complicated than simple microcontrollers and such, but I still know that feel.


Kinja'd!!! The Transporter > Mattbob
09/02/2014 at 15:03

Kinja'd!!!0

The only thing I don't like about CS is the almost total lack of focus on the hardware. Yes, learning mathematical induction is interesting (I guess) but I'd like to know a little bit more about how the little pulses of electrons move through the computer.


Kinja'd!!! Mattbob > The Transporter
09/02/2014 at 15:06

Kinja'd!!!0

shoulda gone CE then. I have a friend who is a CE. That sounds about like what he learned. Not as much analog and power stuff as me, but way more programming than an EE. Pretty much what it sounds like you want.


Kinja'd!!! The Transporter > Mattbob
09/02/2014 at 17:00

Kinja'd!!!0

Well, I didn't chose the CS life, the CS life chose me. I would probably need to go to NC State for CE as it's not offered at my college and I've already switched majors twice. I just want to get the hell out of here with a piece of paper saying that I'm smart.